CXXFLAGS = -Wall -Werror -g `pkg-config gtkmm-2.4 --cflags`
LDFLAGS = -ljack -ldl -g `pkg-config gtkmm-2.4 --cflags --libs`
EXECUTABLE = jackspa
INSTALL_PATH = /usr/local/bin

OBJECTS = gui.o jackspa.o

.PHONY : all clean install

all : $(EXECUTABLE)

clean :
	rm -f $(EXECUTABLE) $(OBJECTS)

install : all
	mkdir -p $(INSTALL_PATH)
	install -c jackspa /usr/local/bin

$(EXECUTABLE) : $(OBJECTS)
	$(CXX) $(LDFLAGS) $(OBJECTS) -o $(EXECUTABLE)
